<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>OpenIG: Core-PluginBase/PluginContext.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="openig_logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">OpenIG
   &#160;<span id="projectnumber">2.0.7</span>
   </div>
   <div id="projectbrief">cross-platform open-source OpenSceneGraph Image Generator</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_50de1d2dc9ae0114344792283f676bab.html">Core-PluginBase</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">PluginContext.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">//#******************************************************************************</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">//#*</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">//#*      Copyright (C) 2015  Compro Computer Services</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">//#*      http://openig.compro.net</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">//#*</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">//#*      Source available at: https://github.com/CCSI-CSSI/MuseOpenIG</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">//#*</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">//#*      This software is released under the LGPL.</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">//#*</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">//#*   This software is free software; you can redistribute it and/or modify</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">//#*   it under the terms of the GNU Lesser General Public License as published</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">//#*   by the Free Software Foundation; either version 2.1 of the License, or</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">//#*   (at your option) any later version.</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">//#*</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">//#*   This software is distributed in the hope that it will be useful,</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">//#*   but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">//#*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">//#*   the GNU Lesser General Public License for more details.</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">//#*</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">//#*   You should have received a copy of the GNU Lesser General Public License</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">//#*   along with this library; if not, write to the Free Software</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">//#*   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment">//#*</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment">//#*    Please direct any questions or comments to the OpenIG Forums</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment">//#*    Email address: openig@compro.net</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment">//#*</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment">//#*</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment">//#*    Please direct any questions or comments to the OpenIG Forums</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment">//#*    Email address: openig@compro.net</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment">//#*</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment">//#*</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="comment">//#*****************************************************************************</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#ifndef PLUGINCONTEXT_H</span></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#define PLUGINCONTEXT_H</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#if defined(OPENIG_SDK)</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">    #include &lt;OpenIG-PluginBase/Export.h&gt;</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">    #include &lt;OpenIG-Base/ImageGenerator.h&gt;</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">        #include &lt;OpenIG-Base/IGCore.h&gt;</span></div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#else</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">    #include &lt;Core-PluginBase/Export.h&gt;</span></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">    #include &lt;Core-Base/ImageGenerator.h&gt;</span></div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="preprocessor">        #include &lt;Core-Base/IGCore.h&gt;</span></div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="preprocessor">#include &lt;map&gt;</span></div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespace_open_i_g.html">OpenIG</a> {</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <span class="keyword">namespace </span>PluginBase {</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="class_open_i_g_1_1_plugin_base_1_1_plugin_context.html">   59</a></span>&#160;        <span class="keyword">class </span>IGPLUGINCORE_EXPORT <a class="code" href="class_open_i_g_1_1_plugin_base_1_1_plugin_context.html">PluginContext</a></div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;        {</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        <span class="keyword">public</span>:</div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="class_open_i_g_1_1_plugin_base_1_1_plugin_context.html#a1c71c58a700234f296311b2e9a12d914">   68</a></span>&#160;            <a class="code" href="class_open_i_g_1_1_plugin_base_1_1_plugin_context.html#a1c71c58a700234f296311b2e9a12d914">PluginContext</a>()</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;                : _ig(0) {}</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;</div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="class_open_i_g_1_1_plugin_base_1_1_plugin_context.html#abc489169a74021d8a8f31d0ce84e3148">   78</a></span>&#160;            <a class="code" href="class_open_i_g_1_1_plugin_base_1_1_plugin_context.html#abc489169a74021d8a8f31d0ce84e3148">PluginContext</a>(<a class="code" href="class_open_i_g_1_1_base_1_1_image_generator.html">OpenIG::Base::ImageGenerator</a>* ig)</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;                : _ig(ig) {}\</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;</div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="class_open_i_g_1_1_plugin_base_1_1_plugin_context.html#a3e2b3c626aca12eb4b8b6e00496a19a9">   88</a></span>&#160;                 <span class="keywordtype">void</span> <a class="code" href="class_open_i_g_1_1_plugin_base_1_1_plugin_context.html#a3e2b3c626aca12eb4b8b6e00496a19a9">setImageGenerator</a>(<a class="code" href="class_open_i_g_1_1_base_1_1_image_generator.html">OpenIG::Base::ImageGenerator</a>* ig)</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;            {</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;                _ig = ig;</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;            }</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div><div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="class_open_i_g_1_1_plugin_base_1_1_plugin_context.html#a6f8763fd50f1c4303e8c5e117de70b31">  100</a></span>&#160;            <a class="code" href="class_open_i_g_1_1_base_1_1_image_generator.html">OpenIG::Base::ImageGenerator</a>* <a class="code" href="class_open_i_g_1_1_plugin_base_1_1_plugin_context.html#a6f8763fd50f1c4303e8c5e117de70b31">getImageGenerator</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;<span class="keyword">            </span>{</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;                <span class="keywordflow">return</span> _ig;</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;            }</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;            <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="struct_open_i_g_1_1_plugin_base_1_1_plugin_context_1_1_attribute.html">  118</a></span>&#160;            <span class="keyword">struct </span><a class="code" href="struct_open_i_g_1_1_plugin_base_1_1_plugin_context_1_1_attribute.html">Attribute</a> : <span class="keyword">public</span> osg::Referenced</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;            {</div><div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="struct_open_i_g_1_1_plugin_base_1_1_plugin_context_1_1_attribute.html#acf40335bd1311ab5d4591660ed1c44e5">  127</a></span>&#160;                <a class="code" href="struct_open_i_g_1_1_plugin_base_1_1_plugin_context_1_1_attribute.html#acf40335bd1311ab5d4591660ed1c44e5">Attribute</a>(T value)</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;                    : _value(value) {}</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;</div><div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="struct_open_i_g_1_1_plugin_base_1_1_plugin_context_1_1_attribute.html#a838e083844f97e1114b57cfb42028307">  137</a></span>&#160;                <span class="keywordtype">void</span> <a class="code" href="struct_open_i_g_1_1_plugin_base_1_1_plugin_context_1_1_attribute.html#a838e083844f97e1114b57cfb42028307">setValue</a>(<span class="keyword">const</span> T&amp; value)</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;                {</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;                    _value = value;</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;                }\</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;</div><div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="struct_open_i_g_1_1_plugin_base_1_1_plugin_context_1_1_attribute.html#a2195ffc9e86bd2edaa10889f1a46c3e8">  149</a></span>&#160;                     T&amp; <a class="code" href="struct_open_i_g_1_1_plugin_base_1_1_plugin_context_1_1_attribute.html#a2195ffc9e86bd2edaa10889f1a46c3e8">getValue</a>()</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;                {</div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;                    <span class="keywordflow">return</span> _value;</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;                }</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;                T   _value;</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;            };</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;            <span class="keyword">typedef</span> std::multimap&lt; std::string, osg::ref_ptr&lt;osg::Referenced&gt; &gt;                    AttributeMap;</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;            <span class="keyword">typedef</span> std::multimap&lt; std::string, osg::ref_ptr&lt;osg::Referenced&gt; &gt;::iterator          AttributeMapIterator;</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;            <span class="keyword">typedef</span> std::multimap&lt; std::string, osg::ref_ptr&lt;osg::Referenced&gt; &gt;::const_iterator    AttributeMapConstIterator;</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;</div><div class="line"><a name="l00169"></a><span class="lineno"><a class="line" href="class_open_i_g_1_1_plugin_base_1_1_plugin_context.html#a9176f89e03267b012976b4113ace69c9">  169</a></span>&#160;            AttributeMap&amp;   <a class="code" href="class_open_i_g_1_1_plugin_base_1_1_plugin_context.html#a9176f89e03267b012976b4113ace69c9">getAttributes</a>()</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;            {</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;                <span class="keywordflow">return</span> _attributes;</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;            }</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;</div><div class="line"><a name="l00182"></a><span class="lineno"><a class="line" href="class_open_i_g_1_1_plugin_base_1_1_plugin_context.html#a5119bddefdb0b8fe3845a929a5c2683e">  182</a></span>&#160;            <span class="keywordtype">void</span> <a class="code" href="class_open_i_g_1_1_plugin_base_1_1_plugin_context.html#a5119bddefdb0b8fe3845a929a5c2683e">addAttribute</a>(<span class="keyword">const</span> std::string&amp; name, osg::Referenced* attr)</div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;            {</div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;                <span class="keywordflow">if</span> (attr == 0) <span class="keywordflow">return</span>;</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;                _attributes.insert(AttributeMap::value_type(name, attr));</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;            }</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;</div><div class="line"><a name="l00197"></a><span class="lineno"><a class="line" href="class_open_i_g_1_1_plugin_base_1_1_plugin_context.html#aca833255b86be6e2a0021b94aaf9f63a">  197</a></span>&#160;            osg::Referenced* <a class="code" href="class_open_i_g_1_1_plugin_base_1_1_plugin_context.html#aca833255b86be6e2a0021b94aaf9f63a">getAttribute</a>(<span class="keyword">const</span> std::string&amp; name)</div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;            {</div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;                AttributeMapIterator itr = _attributes.find(name);</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;                <span class="keywordflow">if</span> (itr != _attributes.end())</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;                    <span class="keywordflow">return</span> itr-&gt;second.get();</div><div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;                <span class="keywordflow">else</span></div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;                    <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;            }</div><div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;</div><div class="line"><a name="l00213"></a><span class="lineno"><a class="line" href="class_open_i_g_1_1_plugin_base_1_1_plugin_context.html#ad8c0e4d1856120fda5e633a66c8a2432">  213</a></span>&#160;            osg::ValueObject* <a class="code" href="class_open_i_g_1_1_plugin_base_1_1_plugin_context.html#ad8c0e4d1856120fda5e633a66c8a2432">getOrCreateValueObject</a>()</div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;            {</div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;                <span class="keywordflow">if</span> (!_valueObject.valid())</div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;                {</div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;                    _valueObject = <span class="keyword">new</span> osg::ValueObject;</div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;                }</div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;                <span class="keywordflow">return</span> _valueObject.get();</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;            }</div><div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;</div><div class="line"><a name="l00229"></a><span class="lineno"><a class="line" href="class_open_i_g_1_1_plugin_base_1_1_plugin_context.html#a3ea202eb7842f4a2216fdd230ed184ba">  229</a></span>&#160;            <span class="keywordtype">void</span> <a class="code" href="class_open_i_g_1_1_plugin_base_1_1_plugin_context.html#a3ea202eb7842f4a2216fdd230ed184ba">setValueObject</a>(osg::ValueObject* valueObject)</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;            {</div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;                _valueObject = valueObject;</div><div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;            }</div><div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;</div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;        <span class="keyword">protected</span>:</div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;            <a class="code" href="class_open_i_g_1_1_base_1_1_image_generator.html">OpenIG::Base::ImageGenerator</a>*           _ig;            </div><div class="line"><a name="l00236"></a><span class="lineno"><a class="line" href="class_open_i_g_1_1_plugin_base_1_1_plugin_context.html#af11ad4d4576853dece84c230ef23f13d">  236</a></span>&#160;            AttributeMap                    <a class="code" href="class_open_i_g_1_1_plugin_base_1_1_plugin_context.html#af11ad4d4576853dece84c230ef23f13d">_attributes</a>;    </div><div class="line"><a name="l00237"></a><span class="lineno"><a class="line" href="class_open_i_g_1_1_plugin_base_1_1_plugin_context.html#a511677df297789d0f3fbac7852bd7b3f">  237</a></span>&#160;            osg::ref_ptr&lt;osg::ValueObject&gt;  <a class="code" href="class_open_i_g_1_1_plugin_base_1_1_plugin_context.html#a511677df297789d0f3fbac7852bd7b3f">_valueObject</a>;   </div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;        };</div><div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;    }</div><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;} <span class="comment">// namespace</span></div><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;</div><div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;<span class="preprocessor">#endif // PLUGINCONTEXT_H</span></div><div class="ttc" id="namespace_open_i_g_html"><div class="ttname"><a href="namespace_open_i_g.html">OpenIG</a></div><div class="ttdef"><b>Definition:</b> Animation.h:55</div></div>
<div class="ttc" id="class_open_i_g_1_1_plugin_base_1_1_plugin_context_html_abc489169a74021d8a8f31d0ce84e3148"><div class="ttname"><a href="class_open_i_g_1_1_plugin_base_1_1_plugin_context.html#abc489169a74021d8a8f31d0ce84e3148">OpenIG::PluginBase::PluginContext::PluginContext</a></div><div class="ttdeci">PluginContext(OpenIG::Base::ImageGenerator *ig)</div><div class="ttdoc">Constructor with reference to OpenIG::Base::ImageGenerator. </div><div class="ttdef"><b>Definition:</b> PluginContext.h:78</div></div>
<div class="ttc" id="struct_open_i_g_1_1_plugin_base_1_1_plugin_context_1_1_attribute_html_a838e083844f97e1114b57cfb42028307"><div class="ttname"><a href="struct_open_i_g_1_1_plugin_base_1_1_plugin_context_1_1_attribute.html#a838e083844f97e1114b57cfb42028307">OpenIG::PluginBase::PluginContext::Attribute::setValue</a></div><div class="ttdeci">void setValue(const T &amp;value)</div><div class="ttdoc">Set some value. </div><div class="ttdef"><b>Definition:</b> PluginContext.h:137</div></div>
<div class="ttc" id="class_open_i_g_1_1_plugin_base_1_1_plugin_context_html_ad8c0e4d1856120fda5e633a66c8a2432"><div class="ttname"><a href="class_open_i_g_1_1_plugin_base_1_1_plugin_context.html#ad8c0e4d1856120fda5e633a66c8a2432">OpenIG::PluginBase::PluginContext::getOrCreateValueObject</a></div><div class="ttdeci">osg::ValueObject * getOrCreateValueObject()</div><div class="ttdoc">Gets a value object to pass data to plugins. </div><div class="ttdef"><b>Definition:</b> PluginContext.h:213</div></div>
<div class="ttc" id="class_open_i_g_1_1_plugin_base_1_1_plugin_context_html_a511677df297789d0f3fbac7852bd7b3f"><div class="ttname"><a href="class_open_i_g_1_1_plugin_base_1_1_plugin_context.html#a511677df297789d0f3fbac7852bd7b3f">OpenIG::PluginBase::PluginContext::_valueObject</a></div><div class="ttdeci">osg::ref_ptr&lt; osg::ValueObject &gt; _valueObject</div><div class="ttdoc">attrinute name based map </div><div class="ttdef"><b>Definition:</b> PluginContext.h:237</div></div>
<div class="ttc" id="class_open_i_g_1_1_plugin_base_1_1_plugin_context_html_a9176f89e03267b012976b4113ace69c9"><div class="ttname"><a href="class_open_i_g_1_1_plugin_base_1_1_plugin_context.html#a9176f89e03267b012976b4113ace69c9">OpenIG::PluginBase::PluginContext::getAttributes</a></div><div class="ttdeci">AttributeMap &amp; getAttributes()</div><div class="ttdoc">Gets a handle of all the igplugincore::PluginContext::Attribute present in the context. </div><div class="ttdef"><b>Definition:</b> PluginContext.h:169</div></div>
<div class="ttc" id="struct_open_i_g_1_1_plugin_base_1_1_plugin_context_1_1_attribute_html"><div class="ttname"><a href="struct_open_i_g_1_1_plugin_base_1_1_plugin_context_1_1_attribute.html">OpenIG::PluginBase::PluginContext::Attribute</a></div><div class="ttdoc">Attribute struct. </div><div class="ttdef"><b>Definition:</b> PluginContext.h:118</div></div>
<div class="ttc" id="class_open_i_g_1_1_plugin_base_1_1_plugin_context_html_a6f8763fd50f1c4303e8c5e117de70b31"><div class="ttname"><a href="class_open_i_g_1_1_plugin_base_1_1_plugin_context.html#a6f8763fd50f1c4303e8c5e117de70b31">OpenIG::PluginBase::PluginContext::getImageGenerator</a></div><div class="ttdeci">OpenIG::Base::ImageGenerator * getImageGenerator() const</div><div class="ttdoc">Returns the OpenIG::Base::ImageGenerator reference. </div><div class="ttdef"><b>Definition:</b> PluginContext.h:100</div></div>
<div class="ttc" id="class_open_i_g_1_1_base_1_1_image_generator_html"><div class="ttname"><a href="class_open_i_g_1_1_base_1_1_image_generator.html">OpenIG::Base::ImageGenerator</a></div><div class="ttdoc">The Image Generator abstract interface. This is base class for openig::OpenIG. </div><div class="ttdef"><b>Definition:</b> ImageGenerator.h:74</div></div>
<div class="ttc" id="class_open_i_g_1_1_plugin_base_1_1_plugin_context_html_a3ea202eb7842f4a2216fdd230ed184ba"><div class="ttname"><a href="class_open_i_g_1_1_plugin_base_1_1_plugin_context.html#a3ea202eb7842f4a2216fdd230ed184ba">OpenIG::PluginBase::PluginContext::setValueObject</a></div><div class="ttdeci">void setValueObject(osg::ValueObject *valueObject)</div><div class="ttdoc">Sets a value object to pass data to plugins. </div><div class="ttdef"><b>Definition:</b> PluginContext.h:229</div></div>
<div class="ttc" id="class_open_i_g_1_1_plugin_base_1_1_plugin_context_html_a5119bddefdb0b8fe3845a929a5c2683e"><div class="ttname"><a href="class_open_i_g_1_1_plugin_base_1_1_plugin_context.html#a5119bddefdb0b8fe3845a929a5c2683e">OpenIG::PluginBase::PluginContext::addAttribute</a></div><div class="ttdeci">void addAttribute(const std::string &amp;name, osg::Referenced *attr)</div><div class="ttdoc">Adds an igplugincore::PluginContext::Attribute with a given name. </div><div class="ttdef"><b>Definition:</b> PluginContext.h:182</div></div>
<div class="ttc" id="class_open_i_g_1_1_plugin_base_1_1_plugin_context_html_aca833255b86be6e2a0021b94aaf9f63a"><div class="ttname"><a href="class_open_i_g_1_1_plugin_base_1_1_plugin_context.html#aca833255b86be6e2a0021b94aaf9f63a">OpenIG::PluginBase::PluginContext::getAttribute</a></div><div class="ttdeci">osg::Referenced * getAttribute(const std::string &amp;name)</div><div class="ttdoc">Gets an igplugincore::PluginContext::Attribute by its name. </div><div class="ttdef"><b>Definition:</b> PluginContext.h:197</div></div>
<div class="ttc" id="class_open_i_g_1_1_plugin_base_1_1_plugin_context_html"><div class="ttname"><a href="class_open_i_g_1_1_plugin_base_1_1_plugin_context.html">OpenIG::PluginBase::PluginContext</a></div><div class="ttdoc">The PluginContext class. </div><div class="ttdef"><b>Definition:</b> PluginContext.h:59</div></div>
<div class="ttc" id="struct_open_i_g_1_1_plugin_base_1_1_plugin_context_1_1_attribute_html_acf40335bd1311ab5d4591660ed1c44e5"><div class="ttname"><a href="struct_open_i_g_1_1_plugin_base_1_1_plugin_context_1_1_attribute.html#acf40335bd1311ab5d4591660ed1c44e5">OpenIG::PluginBase::PluginContext::Attribute::Attribute</a></div><div class="ttdeci">Attribute(T value)</div><div class="ttdoc">Attribute. </div><div class="ttdef"><b>Definition:</b> PluginContext.h:127</div></div>
<div class="ttc" id="class_open_i_g_1_1_plugin_base_1_1_plugin_context_html_af11ad4d4576853dece84c230ef23f13d"><div class="ttname"><a href="class_open_i_g_1_1_plugin_base_1_1_plugin_context.html#af11ad4d4576853dece84c230ef23f13d">OpenIG::PluginBase::PluginContext::_attributes</a></div><div class="ttdeci">AttributeMap _attributes</div><div class="ttdoc">a reference to ImageGenerator </div><div class="ttdef"><b>Definition:</b> PluginContext.h:236</div></div>
<div class="ttc" id="class_open_i_g_1_1_plugin_base_1_1_plugin_context_html_a1c71c58a700234f296311b2e9a12d914"><div class="ttname"><a href="class_open_i_g_1_1_plugin_base_1_1_plugin_context.html#a1c71c58a700234f296311b2e9a12d914">OpenIG::PluginBase::PluginContext::PluginContext</a></div><div class="ttdeci">PluginContext()</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> PluginContext.h:68</div></div>
<div class="ttc" id="class_open_i_g_1_1_plugin_base_1_1_plugin_context_html_a3e2b3c626aca12eb4b8b6e00496a19a9"><div class="ttname"><a href="class_open_i_g_1_1_plugin_base_1_1_plugin_context.html#a3e2b3c626aca12eb4b8b6e00496a19a9">OpenIG::PluginBase::PluginContext::setImageGenerator</a></div><div class="ttdeci">void setImageGenerator(OpenIG::Base::ImageGenerator *ig)</div><div class="ttdoc">Sets the OpenIG::Base::ImageGenerator reference. </div><div class="ttdef"><b>Definition:</b> PluginContext.h:88</div></div>
<div class="ttc" id="struct_open_i_g_1_1_plugin_base_1_1_plugin_context_1_1_attribute_html_a2195ffc9e86bd2edaa10889f1a46c3e8"><div class="ttname"><a href="struct_open_i_g_1_1_plugin_base_1_1_plugin_context_1_1_attribute.html#a2195ffc9e86bd2edaa10889f1a46c3e8">OpenIG::PluginBase::PluginContext::Attribute::getValue</a></div><div class="ttdeci">T &amp; getValue()</div><div class="ttdoc">Gets the value. </div><div class="ttdef"><b>Definition:</b> PluginContext.h:149</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed May 16 2018 15:41:11 for OpenIG by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
